package com.zj.business.pdfInfo.controller;

import com.zj.business.pdfInfo.service.IPdfInfoService;
import com.zj.common.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangbo
 * @program: PDF-helper
 * @ClassName PdfInfoController
 * @description: $
 * @date 2023-05-31 20:02:16
 */
@RestController
@RequestMapping("/pdfInfo/")
public class PdfInfoController {

    @Autowired
    private IPdfInfoService pdfInfoService;


    @GetMapping("test")
    public void test() {
        pdfInfoService.testSync();
    }

    @GetMapping("testReadPdf")
    public ResultVo<String> testReadPdf() {

        return ResultVo.success(
                pdfInfoService.testReadPdf());
    }


}
